package com.micro.shop.model;

import java.io.Serializable;

public class OrderCoupon implements Serializable {
    /**
     * 
     * 表 : bestfenxiao_order_coupon
     * 对应字段 : id
     */
    private Integer id;

    /**
     * 
     * 表 : bestfenxiao_order_coupon
     * 对应字段 : order_id
     */
    private Integer orderId;

    /**
     * 
     * 表 : bestfenxiao_order_coupon
     * 对应字段 : uid
     */
    private Integer uid;

    /**
     * 优惠券ID
     * 表 : bestfenxiao_order_coupon
     * 对应字段 : coupon_id
     */
    private Integer couponId;

    /**
     * 店铺ID
     * 表 : bestfenxiao_order_coupon
     * 对应字段 : store_id
     */
    private Integer storeId;

    /**
     * 优惠券名称
     * 表 : bestfenxiao_order_coupon
     * 对应字段 : name
     */
    private String name;

    /**
     * user_coupon表id
     * 表 : bestfenxiao_order_coupon
     * 对应字段 : user_coupon_id
     */
    private Integer userCouponId;

    /**
     * 优惠券金额
     * 表 : bestfenxiao_order_coupon
     * 对应字段 : money
     */
    private Float money;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table bestfenxiao_order_coupon
     *
     * @mbggenerated Mon Apr 23 22:23:43 CST 2018
     */
    private static final long serialVersionUID = 1L;

    /**
     * get method 
     *
     * @return bestfenxiao_order_coupon.id：
     */
    public Integer getId() {
        return id;
    }

    /**
     * set method 
     *
     * @param id  
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_coupon.order_id：
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * set method 
     *
     * @param orderId  
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_coupon.uid：
     */
    public Integer getUid() {
        return uid;
    }

    /**
     * set method 
     *
     * @param uid  
     */
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_coupon.coupon_id：优惠券ID
     */
    public Integer getCouponId() {
        return couponId;
    }

    /**
     * set method 
     *
     * @param couponId  优惠券ID
     */
    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_coupon.store_id：店铺ID
     */
    public Integer getStoreId() {
        return storeId;
    }

    /**
     * set method 
     *
     * @param storeId  店铺ID
     */
    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_coupon.name：优惠券名称
     */
    public String getName() {
        return name;
    }

    /**
     * set method 
     *
     * @param name  优惠券名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_coupon.user_coupon_id：user_coupon表id
     */
    public Integer getUserCouponId() {
        return userCouponId;
    }

    /**
     * set method 
     *
     * @param userCouponId  user_coupon表id
     */
    public void setUserCouponId(Integer userCouponId) {
        this.userCouponId = userCouponId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_coupon.money：优惠券金额
     */
    public Float getMoney() {
        return money;
    }

    /**
     * set method 
     *
     * @param money  优惠券金额
     */
    public void setMoney(Float money) {
        this.money = money;
    }

    /**
     *
     * @param that
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderCoupon other = (OrderCoupon) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getCouponId() == null ? other.getCouponId() == null : this.getCouponId().equals(other.getCouponId()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getUserCouponId() == null ? other.getUserCouponId() == null : this.getUserCouponId().equals(other.getUserCouponId()))
            && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()));
    }

    /**
     *
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getCouponId() == null) ? 0 : getCouponId().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getUserCouponId() == null) ? 0 : getUserCouponId().hashCode());
        result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode());
        return result;
    }
}